﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace XRoute.DataExchange
{
    [DataContract(Name = "Board", Namespace = Contracts.Namespace)]
    public class BoardContract
    {
        ///////////////////////////////////////////////////////////////////////

        [DataMember(Name = "Map")]
        readonly MapContract _map;

        [DataMember(Name = "BackgroundImagePng")]
        readonly byte[] _backgroundImagePng;


        ///////////////////////////////////////////////////////////////////////

        public BoardContract(MapContract map, byte[] backgroundImagePng)
        {
            _map = map;
            _backgroundImagePng = backgroundImagePng;
        }

        public MapContract Map
        {
            get { return _map; }
        }

        public byte[] BackgroundImagePng
        {
            get { return _backgroundImagePng; }
        }
    }
}
